/**
 * AddTakenCourseForm class.
 */
package pits.form;

import javax.portlet.ActionRequest;

public class AddTakenCourseForm {

	private String employeeID;
	private String courseID;
	private String grade;

	public AddTakenCourseForm(int empID) {
		this.employeeID = "" + empID;
	}

	/**
	 * @return the employeeID
	 */
	public String getEmployeeID() {
		return employeeID;
	}

	/**
	 * @param employeeID
	 *            the employeeID to set
	 */
	public void setEmployeeID(String employeeID) {
		this.employeeID = employeeID;
	}

	/**
	 * @return the courseID
	 */
	public String getCourseID() {
		return courseID;
	}

	/**
	 * @param courseID
	 *            the courseID to set
	 */
	public void setCourseID(String courseID) {
		this.courseID = courseID;
	}

	/**
	 * @return the grade
	 */
	public String getGrade() {
		return grade;
	}

	/**
	 * @param grade
	 *            the grade to set
	 */
	public void setGrade(String grade) {
		this.grade = grade;
	}

	public void setFields(ActionRequest request) {
		if (request.getParameter("courseID") != null) {
			setCourseID(request.getParameter("courseID"));
		}
		if (request.getParameter("grade") != null) {
			setGrade(request.getParameter("grade"));
		}
	}
}
